﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using XCommunity.Frames;

namespace XCommunity.Blogs.Frames
{
  public abstract class BlogCategoryFrame : IBlogCategoryFrame
  {


    public BlogCategoryFrame( BlogFrame blog, XElement categoryConfigElement )
    {
      Blog = blog;

      Title = categoryConfigElement.Element( "Title" ).Value;
      Title = categoryConfigElement.Element( "Description" ).Value;
    }


    #region IBlogCategoryFrame 成员

    public BlogFrame Blog
    {
      get;
      private set;
    }

    public string Title
    {
      get;
      private set;
    }

    public string Description
    {
      get;
      private set;
    }

    #endregion

    #region IBoardFrame 成员

    public abstract IEnumerable<ITopicFrame> GetTopics();

    #endregion
  }
}
